CC=mpic++
CFLAGS=-Wall -pedantic -o2
LNORMAL=-lboost_mpi
LSTAR=-lboost_mpi-mt
OUTPUT=mbg-par

all:
	$(CC) $(CFLAGS) $(LNORMAL) *.cc -o $(OUTPUT)
star:
	$(CC) $(CFLAGS) $(LSTAR) *.cc -o $(OUTPUT)
clean:
	rm -f $(OUTPUT) *.o
run: 
	mpirun -np 2 ./$(OUTPUT) test2

runshort4:
	qsub -pe ompi 4 -q short.q -l psq parallel_job.sh
runshort8:
	qsub -pe ompi 8 -q short.q -l psq parallel_job.sh
runshort16:
	qsub -pe ompi 16 -q short.q -l psq parallel_job.sh
